//
//  NKNewsModel.m
//  NiKi
//
//  Created by qiang chen on 16/6/23.
//  Copyright © 2016年 qiang chen. All rights reserved.
//

#import "NKNewsModel.h"

@implementation NKNewsModel

- (CGFloat)cellH {
    CGSize contentSize = [self.content boundingRectWithSize:CGSizeMake(ScreenW - 3*kCellMargin - kNewsCellImageW, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:12]} context:nil].size;
    CGFloat h = kCellMargin + 30 + contentSize.height + 30;
    return h > 120?h:120;
}
@end
